<ui:composition
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:cc="http://java.sun.com/jsf/composite"
        xmlns:h="http://java.sun.com/jsf/html" >
    <cc:interface>
    </cc:interface>
    <cc:implementation>
        <center>
            <h:panelGrid>
                <h:panelGrid columns="2" id="loginpanel" cellpadding="5" cellspacing="3">
                    <h:outputText value="User Name"/>
                    <h:inputText value="#{userBean.userName}" required="true" id="username"
                                 requiredMessage="User Name must not be empty"/>
                    <h:outputText value="Password"/>
                    <h:inputSecret value="#{userBean.password}" required="true" id="password"
                                   requiredMessage="Password must not be empty"/>
                </h:panelGrid>
                <h:commandButton value="Login" action="#{userBean.login}" id="login"/>
                <h:commandButton value="Cancel" id="cancelAction"/>
            </h:panelGrid>
        </center>
    </cc:implementation>
</ui:composition>
